<html><head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="self.css">
<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script><script src="https://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
<script src="self.js" type="text/javascript" charset="utf-8"></script>
<style>
		
	</style></head>

<body style="margin-top: 20px;">
<form>
<div id="demo"></div>

<a class="layui-btn sumbit" type="sumbit">获取数据</a>
</form>

<script type="text/javascript">
		var tagData = [{"name":"存包柜视频1","id":64},
					{"name":"存包柜视频2","id":65},
					{"name":"测试图片1","id":5},
					{"name":"泳池图片","id":6},
					{"name":"测试","id":7},
					{"name":"测试视频","id":8},
					{"name":"视频2","id":10},
					{"name":"竖直长图","id":11},
					{"name":"垃圾箱","id":16}];
	    //input name 为 fileIds
	    $.myMethod("#demo",tagData,"fileIds")
	    $(".sumbit").on("click",function(){
	    	console.log($("form").serialize())
	    })
</script>
</body></html>